set(src_dirs
            SD_card
            CMD_my
            cmd_nvs
            cmd_wifi
            cmd_system
            mDNSWeb
            )

set(include_dirs
            SD_card
            CMD_my
            cmd_nvs
            cmd_wifi
            cmd_system
            mDNSWeb
            )

set(requires
            driver
            fatfs
            console
            sdmmc
            log
            esp_wifi
            esp_event
            nvs_flash
            lwip
            wifi_provisioning
            mdns
            esp_https_server
            json
            )

idf_component_register(SRC_DIRS ${src_dirs} INCLUDE_DIRS ${include_dirs} REQUIRES ${requires})

component_compile_options(-ffast-math -O0 -Wno-error=format=-Wno-format)